﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kimd.Communication
{
    public interface IPlc
    {
        bool Connect(string ip, int port, byte StationNo);
        bool Close();
        bool Read(string series, RegisterType registerType, DataType dataType, int startAddress, int length, out List<string> values, out int errCode);
        bool Write(string series, RegisterType registerType, DataType dataType, int startAddress, List<string> values, out int errCode);
    }
}
